package cn.edu.stu.syllabus.repository.oa;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by daidaijie on 2016/10/17.
 */

public class OaSearchInfo implements Parcelable {

    private int mSubCompanyId;

    private String mKeyword;

    public OaSearchInfo() {
        mKeyword = "";
        mSubCompanyId = 0;
    }

    public int getSubCompanyId() {
        return mSubCompanyId;
    }

    public void setSubCompanyId(int subCompanyId) {
        this.mSubCompanyId = subCompanyId;
    }

    public String getKeyword() {
        return mKeyword;
    }

    public void setKeyword(String keyword) {
        this.mKeyword = keyword;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.mSubCompanyId);
        dest.writeString(this.mKeyword);
    }

    protected OaSearchInfo(Parcel in) {
        this.mSubCompanyId = in.readInt();
        this.mKeyword = in.readString();
    }

    public static final Parcelable.Creator<OaSearchInfo> CREATOR = new Parcelable.Creator<OaSearchInfo>() {
        @Override
        public OaSearchInfo createFromParcel(Parcel source) {
            return new OaSearchInfo(source);
        }

        @Override
        public OaSearchInfo[] newArray(int size) {
            return new OaSearchInfo[size];
        }
    };
}
